home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / misc / sci / Squid.lha / Squid / squid_class.h next >
Encoding:
C/C++ Source or Header  |  2001-07-27  |  1.6 KB  |  132 lines

  1. /*class used*/
  2. class Cell
  3. {
  4.     private:
  5.  
  6.         int color;
  7.         int cx;
  8.         int cy;
  9.         int r;
  10.         int r_temp;
  11.         int ID;
  12.         float distance;
  13.         BOOL update;
  14.  
  15.     public:
  16.  
  17.         Cell();
  18.         ~Cell();
  19.         void set_color(int);
  20.         void set_cx(int);
  21.         void set_cy(int);
  22.         void set_r(int);
  23.         void set_r_temp(int);
  24.         void set_ID(int);
  25.         void set_distance(float);
  26.         void set_update(BOOL);
  27.         int get_color() const;
  28.         int get_cx() const;
  29.         int get_cy() const;
  30.         int get_r() const;
  31.         int get_r_temp() const;
  32.         int get_ID() const;
  33.         float get_distance() const;
  34.         BOOL get_update() const;
  35. };
  36.  
  37. Cell::Cell()
  38. {
  39.     color=1;
  40.     cx=0;
  41.     cy=0;
  42.     r=0;
  43.     r_temp=0;
  44.     ID=0;
  45.     distance=0.0;
  46.     update=FALSE;
  47. }
  48.  
  49. Cell::~Cell()
  50. {
  51. }
  52.  
  53. void Cell::set_color(int stuff)
  54. {
  55.     color=stuff;
  56. }
  57.  
  58. void Cell::set_cx(int stuff)
  59. {
  60.     cx=stuff;
  61. }
  62.  
  63. void Cell::set_cy(int stuff)
  64. {
  65.     cy=stuff;
  66. }
  67.  
  68. void Cell::set_r(int stuff)
  69. {
  70.     r=stuff;
  71. }
  72.  
  73. void Cell::set_r_temp(int stuff)
  74. {
  75.     r_temp=stuff;
  76. }
  77.  
  78. void Cell::set_ID(int stuff)
  79. {
  80.     ID=stuff;
  81. }
  82.  
  83. void Cell::set_distance(float stuff)
  84. {
  85.     distance=stuff;
  86. }
  87.  
  88. void Cell::set_update(BOOL stuff)
  89. {
  90.     update=stuff;
  91. }
  92.  
  93. int Cell::get_color() const
  94. {
  95.     return color;
  96. }
  97.  
  98. int Cell::get_cx() const
  99. {
  100.     return cx;
  101. }
  102.  
  103. int Cell::get_cy() const
  104. {
  105.     return cy;
  106. }
  107.  
  108. int Cell::get_r() const
  109. {
  110.     return r;
  111. }
  112.  
  113. int Cell::get_r_temp() const
  114. {
  115.     return r_temp;
  116. }
  117.  
  118. int Cell::get_ID() const
  119. {
  120.     return ID;
  121. }
  122.  
  123. float Cell::get_distance() const
  124. {
  125.     return distance;
  126. }
  127.  
  128. BOOL Cell::get_update() const
  129. {
  130.     return update;
  131. }
  132.